package services.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import orm.Tie;
import orm.TieMapper;
import services.TieBiz;

@Service
public class TieBizImpl implements TieBiz {

	@Resource
	TieMapper tieMapper;

	public List<Tie> getAll(int pageIndex) {
		return tieMapper.getAll(pageIndex);
	}

	public void addTie(Tie tie) {
		tieMapper.addTie(tie);		
	}

	public Tie getTieById(int tId) {
		return tieMapper.getTieById(tId);
	}

	public int tieCount() {
		return tieMapper.tieCount();
	}

}
